package com.anti.modular.bus.roomfurniture.param;

import com.anti.commom.pojo.BaseParam;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
* 房间家私配置表参数类
 *
 * @author anti
 * @date 2021-04-18 17:08:44
*/
@Data
public class RoomFurnitureParam extends BaseParam {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private Long id;

    /**
     * 房间id
     */
    @NotNull(message = "房间id不能为空，请检查roomid参数", groups = {add.class, edit.class})
    private Long roomid;

    /**
     * 家私配置表id
     */
    @NotNull(message = "家私配置表id不能为空，请检查furnitureid参数", groups = {add.class, edit.class})
    private Long furnitureid;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空，请检查quantity参数", groups = {add.class, edit.class})
    private Integer quantity;

    /**
     * 家私名称
     */
    @NotBlank(message = "家私名称不能为空，请检查name参数", groups = {add.class, edit.class})
    private String name;

    /**
     * 价格字符转名称
     */
    @NotBlank(message = "价格字符转名称不能为空，请检查pricestr参数", groups = {add.class, edit.class})
    private String pricestr;

    /**
     * 赔偿价格["22.00", "33.00", "44.00"]
     */
    @NotBlank(message = "赔偿价格不能为空，请检查price参数", groups = {add.class, edit.class})
    private BigDecimal price;

    /**
     * 状态（字典 0正常 1停用 2删除）
     */
    private Integer status;

}
